<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<link rel="stylesheet" href="/manager/style/css/screen.css"
	type="text/css" media="screen, projection" />

<link rel="stylesheet" type="text/css"
	href="/manager/style/css/superfish.css" media="screen">

<script type="text/javascript"
	src="/manager/style/js/jquery-1.4.2.min.js">
	
</script>

<script type="text/javascript" src="/manager/style/js/superfish.js">
	
</script>

<script type="text/javascript">
	
</script>
</head>

<body>
<div class="right_context container">

<div class="span-16">
<fieldset><legend> 添加商品 </legend>



<div id="add_navi_div">
<form action="/manager/goods-addGoods.action" method="post">
<table class="cute_form">
	<s:if test="%{#message != ''}">
		<tr>
			<td style="text-align: right;"><s:property value="%{message}" /></td>
		</tr>
	</s:if>

	<tr>

		<td style="text-align: right;">商品分类</td>
		<td><select name="goods.naviKey">
			<s:iterator value="naviList" var="n">
				<s:if test="%{#n.type == 'goods'}">
					<option value="<s:property value="#n.keyString" />"><s:property
						value="#n.displayName" /></option>
				</s:if>
			</s:iterator>
		</select></td>
	</tr>
	<tr>
		<td style="text-align: right;">是否上架</td>
		<td><input type="checkbox" name="goods.boolShelve" value="true"
			checked="checked" /></td>
	</tr>
	<tr>
		<td style="text-align: right;">商品名称</td>
		<td><input type="text" name="goods.displayName" value="" /></td>
	</tr>
	<tr>
		<td style="text-align: right;">缩略名</td>
		<td><input type="text" name="goods.shortName" value="" /></td>
	</tr>
	<tr>
		<td style="text-align: right;">商品介绍</td>
		<td><input type="text" name="goods.content" value="" /></td>
	</tr>
	<tr>
		<td style="text-align: right;">商品成本价</td>
		<td><input type="text" name="goods.costPrice" value="0" /></td>
	</tr>
	<tr>
		<td style="text-align: right;">商品售价</td>
		<td><input type="text" name="goods.price" value="0" /></td>
	</tr>
	<tr>
		<td style="text-align: right;">市场价格</td>
		<td><input type="text" name="goods.marketPrice" value="0" /></td>
	</tr>
	<tr>
		<td style="text-align: right;">促销价格</td>
		<td><input type="text" name="goods.salePrice" value="0" /></td>
	</tr>
	<tr>
		<td style="text-align: right;">库存量</td>
		<td><input type="text" name="goods.stocks" value="0" /></td>
	</tr>
	<tr>
		<td style="text-align: right;">发布者邮件</td>
		<td><input type="text" name="goods.postUserKey" value="0" /></td>
	</tr>
	<tr>
		<td style="text-align: right;">发布者姓名</td>
		<td><input type="text" name="goods.postUserName" value="0" /></td>
	</tr>
	<tr>
		<td style="text-align: right;">商品缩略图(图片地址)</td>
		<td><input type="text" name="goods.photo" value="#" /></td>
	</tr>
	<tr>
		<td></td>
		<td><input type="submit" value="提交" /></td>
	</tr>
</table>
</form>
</div>
</fieldset>
</div>
</div>

</body>
</html>
